#-*- coding:utf8 -*-
from django.template import Context, RequestContext
from django.shortcuts import render_to_response
import settings

def hello_page(request):
    '''
    start page...
    '''
    #from django.utils.translation import activate
    #$activate('ja-JP')
    #request.LANGUAGE_CODE = 'ja'
    
    
    #request.session['django_language'] = 'en'
    #print request.session['django_language']
    
    
    
    #from django.utils import translation
    #translation.activate('ja')
    
    
    
    #lang_code = 'en'
    
    #if hasattr(request, 'session'):
    #    request.session['django_language'] = lang_code
    #else:
    #response.set_cookie(settings.LANGUAGE_COOKIE_NAME, lang_code)
    
    res = render_to_response('hello_page.html', RequestContext(request))
    #res.set_cookie(settings.LANGUAGE_COOKIE_NAME, lang_code)
    return  res
